package com.zmzncs.lmtc.module.promotion.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.promotion.pojo.ticket.Ticket;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.promotion.pojo.ticket.TicketDTO;
import com.zmzncs.lmtc.module.promotion.pojo.ticket.TicketSelectForm;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2020-10-13
 */
@Repository
public interface TicketDao extends BaseMapper<Ticket> {

    /**条件分页查询优惠券信息*/
    IPage<TicketDTO> getTicketByManage(Page page, @Param("form") TicketSelectForm form);

    /**查询所有优惠券信息 */
    List<TicketDTO> getAllTicket();
}
